<?php

namespace app\api\controller;

use app\api\model\BondLog;
use app\api\model\HandlerModel;
use app\api\model\MemberBill;
use app\api\model\SourceModel;

class Advise extends Api
{


    protected $noNeedLogin =["getHandler"];
    //获取财税顾问列表
     public function getHandler(){
         $data = (new HandlerModel())->getHandler($this->request_array);
         $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg']);
     }


    //获取客源列表
    public function getAdvise(){
        $data = (new SourceModel())->getAdvise($this->request_array);
        $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg']);
    }

    public function lookSource(){
        $data = (new SourceModel())->lookSource($this->request_array);
        $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg'],$data['data']);
    }




    public function addAdvise(){
        $data = (new SourceModel())->addAdvise($this->request_array);
        $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg']);
    }

    public function updateAdvise(){
        $data = (new SourceModel())->updateAdvise($this->request_array);
        $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg']);
    }

    public function deleteAdvise(){
        $data = (new SourceModel())->deleteAdvise($this->request_array);
        $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg']);
    }


    public function getAdviseRecommend(){
        $data = (new MemberBill())->getAdviseRecommend($this->request_array);
        $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg']);
    }

    public function getAdviseBillList(){
        $data = (new MemberBill())->getAdviseBillList($this->request_array);
        $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg']);
    }


    public function getAdviseIncomeList(){
        $data = (new MemberBill())->getAdviseIncomeList($this->request_array);
        $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg']);
    }

    public function getBondLog(){
        $data = (new BondLog())->getBondLog($this->request_array);
        $data['code'] == 200 ? $this->success($data['msg'],$data['data']) : $this->error($data['msg']);
    }



}